#ifndef __ERFEN_H
#define __ERFEN_H
#include"queuestack.h"
#include <Windows.h>
#include <iostream>
#include <math.h>
#include <Windows.h>
#include <stdlib.h>
#include <time.h>
#include <conio.h>
#include <stdio.h>
#include <cstring>

class entrance:public Queue
{	
	public:
	int pop1();
	void push(int x,int y) ;
	int getx() {return tail->x;}//to get the data of latest point(for search)
	int gety() {return tail->y;}
	int getx1() {return head->x;}//to output
	int gety1() {return head->y;}
	void setdata(int k) {tail->data=k;} //the data is the amounts of the accessible direction
	int getdata() {return tail->data;}
};
class exit1:public Stack
{
	public:
	void push(int x,int y) ;
	int getx() {return head->x;}//to get the data of latest point(for search) and to output
	int gety() {return head->y;}
	void setdata(int k) {head->data=k;}
	int getdata() {return head->data;}
};
void init_erfen();
void move(exit1 &ch,entrance &r);
#endif